package com.wing.purchase.model.request;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.purchase.model.entity.PurchasePlanDetail;
import com.wing.purchase.model.entity.PurchaseRequisitionsDetail;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.wing.purchase.model.entity.PurchaseRequisitions;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 采购请购单Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class PurchaseRequisitionsForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 单据号
     */
    private String receiptsNo;

    /**
     * 确认人
     */
    private Long affirmant;

    /**
     * 审核人
     */
    private Long auditor;

    /**
     * 关闭人
     */
    private Long shutter;

    /**
     * 状态
     */
    private PurchaseRequisitions.Status status;

    /**
     * 审核失败原因
     */
    private String reason;

    /**
     * 询价状态
     */
    private PurchaseRequisitions.EnquiryStatus enquiryStatus;

    /**
     * 采购单核对ID
     */
    private Long purchasePlanCheckId;

    /**
     * 部门ID
     */
    private Long departmentId;

    /**
     * 采购请购单明细集合
     */
    private List<PurchaseRequisitionsDetail> purchaseRequisitionsDetails = new ArrayList<>();

    public interface Add {
    }

    public interface Update {
    }
}
